#include<func.h>
int printd(char* path,char*name)
{
	DIR *pdir=opendir(path);
	ERROR_CHECK(pdir,NULL,"opendir");
	struct dirent* pdirent;
	while((pdirent=readdir(pdir)))
	{
		if((strcmp(pdirent->d_name,name))==0)
		{
			puts(getcwd(NULL,0));
		}
	}
}
int main(int argc,char**argv)
{
	ARGS_CHECK(argc,3);
	printd(argv[1],argv[2]);
	return 0;
}
